package com.gsi.webstore.platform.storefront.capi.productconfiguration;

import com.gsi.webstore.platform.storefront.internal.productconfiguration.ORMProductConfigurationBOGSIExtensionImpl;
import com.intershop.beehive.core.capi.businessobject.BusinessObjectExtensionFactory;
import com.intershop.component.productconfiguration.capi.configuration.ProductConfigurationBO;

/**
 * 
 * @author Martin Boehmer
 *
 */
public class ProductConfigurationBOGSIExtensionFactory implements BusinessObjectExtensionFactory<ProductConfigurationBOGSIExtension, ProductConfigurationBO>
{

    /*
     * (non-Javadoc)
     * @see com.intershop.beehive.core.capi.businessobject.BusinessObjectExtensionFactory#createExtension(com.intershop.beehive.core.capi.businessobject.BusinessObject)
     */
    @Override
    public ProductConfigurationBOGSIExtension createExtension(ProductConfigurationBO bo)
    {
        return new ORMProductConfigurationBOGSIExtensionImpl(bo);
    }

    /*
     * (non-Javadoc)
     * @see com.intershop.beehive.core.capi.businessobject.BusinessObjectExtensionFactory#getExtensionType()
     */
    @Override
    public Class<ProductConfigurationBOGSIExtension> getExtensionType()
    {
        return ProductConfigurationBOGSIExtension.class;
    }

    /*
     * (non-Javadoc)
     * @see com.intershop.beehive.core.capi.businessobject.BusinessObjectExtensionFactory#getExtensionName()
     */
    @Override
    public String getExtensionName()
    {
        return "GSI";
    }

}
